import request from '@/utils/request'

export function insertDrinks(params) {
  return request({
    url: '/drinks/insertDrinks',
    method: 'post',
    data: params
  })
}

export function updateDrinks(params) {
  return request({
    url: '/drinks/updateDrinks',
    method: 'post',
    data: params
  })
}

export function deleteDrinks(id) {
  return request({
    url: '/drinks/deleteDrinks',
    method: 'post',
    params: { id: id }
  })
}

export function selectDrinksByLimit(pageNum, pageSize, name) {
  return request({
    url: '/drinks/selectDrinksByLimit',
    method: 'get',
    params: {
      pageNum: pageNum,
      pageSize: pageSize,
      name: name
    }
  })
}
